<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<link rel="stylesheet" type="text/css" href="css/base.css" />
	<base href="<%=basePath%>">

	<title>Editar Reserva de Excursion</title>
	
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>
  
<body>
	<f:view>
		<h:form>
			<h:panelGrid border="0" columns="3">
				
				<h:outputLabel for="fechaReserva" value="Fecha (dd/mm/aaaa): " />
				<h:inputText id="fechaReserva" maxlength="10" size="10"
					value="#{administrarReservasExcursionBean.dataItem.fechaDeExcursion}" required="true">
					<f:convertDateTime pattern="dd/MM/yyyy" />				
				</h:inputText>
				<h:message for="fechaReserva" errorClass="error"></h:message>
					
				
				<h:outputText value="Excursiones"></h:outputText>
				<h:selectOneMenu id="excursiones" value="#{administrarReservasExcursionBean.dataItem.nombreExcursion}" required="true" requiredMessage="Requerido">
						<f:selectItems  value="#{administrarReservasExcursionBean.excursiones}"/>
				</h:selectOneMenu>
				<h:message for="excursiones" errorClass="error"></h:message>
				
				
				
				
			</h:panelGrid>
			<p>
			<h:commandButton value="Guardar" action="#{administrarReservasExcursionBean.guardar}"/>
			<h:commandButton value="Cancelar" action="#{administrarReservasExcursionBean.volver}" immediate="true" />
		</h:form>
	</f:view>
</body>
</html>